package com.black.platform.permission.vo;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import java.util.List;

@Data
@JsonInclude(JsonInclude.Include.NON_NULL)
public class PermissionTreeVo {
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    private String title;

    private String type;

    private String permissionCode;

    private boolean expand;

    private boolean checked;

    private List<PermissionTreeVo> children;
}
